package com.learn.beans.config;

import com.learn.beans.bean.Person;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;


/**
 * @author gqzdev
 * @date 2021/07/10 10:19
 **/
@Configuration
@ComponentScan("com.learn.beans.bean")
public class JavaConfig { //factoryBeanName=javaConfig

	@Bean
	public Person person(){
		return new Person("gqzdev",18);
	}
}
